<template>
  <div class='' v-html="aboutUs">

  </div>
</template>

<script>
  export default{
    name:'aboutUs',
    data(){
      return {
        aboutUs: ''
      }
    },
    methods:{
      //获取关于我们
      async getAboutUs() {
        let res = await this.$api.getAboutUs({},this.$baseUrl)
        if (res.data.level == 'success') {
		  let str = res.data.data.detail
		  if (str != null) {
		    str = str.replace(/<img[^>]*>/gi, function (match, capture) {
		      return match.replace(/style\s*?=\s*?([‘"])[\s\S]*?\1/ig, '')
		    });
		    str = str.replace(/\<img/gi, '<img style="max-width:100%;height:auto;vertical-align: top;" ');
		  }
		  this.aboutUs = str
        } else {
          this.$currency.showToast(res.data.message, 'none', 1500)
        }
      },
    },

    onShow(){
      this.getAboutUs();
    }
  }
</script>

<style lang="scss" scoped>

</style>
